
package com.jiuqi.ccp.generator.form;

import java.text.ParseException;
import java.text.SimpleDateFormat;

import javax.servlet.http.HttpServletRequest;

import org.apache.struts.action.ActionError;
import org.apache.struts.action.ActionErrors;
import org.apache.struts.action.ActionForm;
import org.apache.struts.action.ActionMapping;

/**
 * Form for ccpEqScheme.
 *
 * @author <a href="http://boss.bekk.no/boss/middlegen/"/>Middlegen</a>
 *
 * @struts.form name="ccpEqSchemeForm"
 */
public class CcpEqSchemeForm extends ActionForm {

   private final static SimpleDateFormat FORMAT = new SimpleDateFormat("dd.MM.yyyy hh:mm:ss");

   private java.lang.String _eqsGuid = null;
   private java.lang.String _eqsCode = null;
   private java.lang.String _esgGuid = null;
   private java.lang.String _eqsName = null;
   private java.lang.String _userCode = null;
   private java.lang.String _operExplain = null;
   private java.lang.String _eqtGuid = null;
   private java.lang.String _erfGuid = null;
   private java.lang.String _sysParam = null;
   private java.lang.String _isSelf = null;
   private java.lang.String _pagePath = null;
   private java.lang.String _isPublish = null;
   private java.lang.String _inputPer = null;
   private java.lang.String _eqsUrl = null;
   private java.lang.String _inputDate = null;
   private java.lang.String _reserved1 = null;
   private java.lang.String _reserved2 = null;
   private java.lang.String _reserved3 = null;

   /**
    * Standard constructor.
    */
   public CcpEqSchemeForm() {
   }

   /**
    * Returns the eqsGuid
    *
    * @return the eqsGuid
    */
   public java.lang.String getEqsGuid() {
      return _eqsGuid;
   }

   /**
    * Sets the eqsGuid
    *
    * @param eqsGuid the new eqsGuid value
    */
   public void setEqsGuid(java.lang.String eqsGuid) {
      _eqsGuid = eqsGuid;
   }
   /**
    * Returns the eqsCode
    *
    * @return the eqsCode
    */
   public java.lang.String getEqsCode() {
      return _eqsCode;
   }

   /**
    * Sets the eqsCode
    *
    * @param eqsCode the new eqsCode value
    */
   public void setEqsCode(java.lang.String eqsCode) {
      _eqsCode = eqsCode;
   }
   /**
    * Returns the esgGuid
    *
    * @return the esgGuid
    */
   public java.lang.String getEsgGuid() {
      return _esgGuid;
   }

   /**
    * Sets the esgGuid
    *
    * @param esgGuid the new esgGuid value
    */
   public void setEsgGuid(java.lang.String esgGuid) {
      _esgGuid = esgGuid;
   }
   /**
    * Returns the eqsName
    *
    * @return the eqsName
    */
   public java.lang.String getEqsName() {
      return _eqsName;
   }

   /**
    * Sets the eqsName
    *
    * @param eqsName the new eqsName value
    */
   public void setEqsName(java.lang.String eqsName) {
      _eqsName = eqsName;
   }
   /**
    * Returns the userCode
    *
    * @return the userCode
    */
   public java.lang.String getUserCode() {
      return _userCode;
   }

   /**
    * Sets the userCode
    *
    * @param userCode the new userCode value
    */
   public void setUserCode(java.lang.String userCode) {
      _userCode = userCode;
   }
   /**
    * Returns the operExplain
    *
    * @return the operExplain
    */
   public java.lang.String getOperExplain() {
      return _operExplain;
   }

   /**
    * Sets the operExplain
    *
    * @param operExplain the new operExplain value
    */
   public void setOperExplain(java.lang.String operExplain) {
      _operExplain = operExplain;
   }
   /**
    * Returns the eqtGuid
    *
    * @return the eqtGuid
    */
   public java.lang.String getEqtGuid() {
      return _eqtGuid;
   }

   /**
    * Sets the eqtGuid
    *
    * @param eqtGuid the new eqtGuid value
    */
   public void setEqtGuid(java.lang.String eqtGuid) {
      _eqtGuid = eqtGuid;
   }
   /**
    * Returns the erfGuid
    *
    * @return the erfGuid
    */
   public java.lang.String getErfGuid() {
      return _erfGuid;
   }

   /**
    * Sets the erfGuid
    *
    * @param erfGuid the new erfGuid value
    */
   public void setErfGuid(java.lang.String erfGuid) {
      _erfGuid = erfGuid;
   }
   /**
    * Returns the sysParam
    *
    * @return the sysParam
    */
   public java.lang.String getSysParam() {
      return _sysParam;
   }

   /**
    * Sets the sysParam
    *
    * @param sysParam the new sysParam value
    */
   public void setSysParam(java.lang.String sysParam) {
      _sysParam = sysParam;
   }
   /**
    * Returns the isSelf
    *
    * @return the isSelf
    */
   public java.lang.String getIsSelf() {
      return _isSelf;
   }

   /**
    * Sets the isSelf
    *
    * @param isSelf the new isSelf value
    */
   public void setIsSelf(java.lang.String isSelf) {
      _isSelf = isSelf;
   }
   /**
    * Returns the pagePath
    *
    * @return the pagePath
    */
   public java.lang.String getPagePath() {
      return _pagePath;
   }

   /**
    * Sets the pagePath
    *
    * @param pagePath the new pagePath value
    */
   public void setPagePath(java.lang.String pagePath) {
      _pagePath = pagePath;
   }
   /**
    * Returns the isPublish
    *
    * @return the isPublish
    */
   public java.lang.String getIsPublish() {
      return _isPublish;
   }

   /**
    * Sets the isPublish
    *
    * @param isPublish the new isPublish value
    */
   public void setIsPublish(java.lang.String isPublish) {
      _isPublish = isPublish;
   }
   /**
    * Returns the inputPer
    *
    * @return the inputPer
    */
   public java.lang.String getInputPer() {
      return _inputPer;
   }

   /**
    * Sets the inputPer
    *
    * @param inputPer the new inputPer value
    */
   public void setInputPer(java.lang.String inputPer) {
      _inputPer = inputPer;
   }
   /**
    * Returns the eqsUrl
    *
    * @return the eqsUrl
    */
   public java.lang.String getEqsUrl() {
      return _eqsUrl;
   }

   /**
    * Sets the eqsUrl
    *
    * @param eqsUrl the new eqsUrl value
    */
   public void setEqsUrl(java.lang.String eqsUrl) {
      _eqsUrl = eqsUrl;
   }
   /**
    * Returns the inputDate
    *
    * @return the inputDate
    */
   public java.lang.String getInputDate() {
      return _inputDate;
   }

   /**
    * Sets the inputDate
    *
    * @param inputDate the new inputDate value
    */
   public void setInputDate(java.lang.String inputDate) {
      _inputDate = inputDate;
   }
   /**
    * Returns the reserved1
    *
    * @return the reserved1
    */
   public java.lang.String getReserved1() {
      return _reserved1;
   }

   /**
    * Sets the reserved1
    *
    * @param reserved1 the new reserved1 value
    */
   public void setReserved1(java.lang.String reserved1) {
      _reserved1 = reserved1;
   }
   /**
    * Returns the reserved2
    *
    * @return the reserved2
    */
   public java.lang.String getReserved2() {
      return _reserved2;
   }

   /**
    * Sets the reserved2
    *
    * @param reserved2 the new reserved2 value
    */
   public void setReserved2(java.lang.String reserved2) {
      _reserved2 = reserved2;
   }
   /**
    * Returns the reserved3
    *
    * @return the reserved3
    */
   public java.lang.String getReserved3() {
      return _reserved3;
   }

   /**
    * Sets the reserved3
    *
    * @param reserved3 the new reserved3 value
    */
   public void setReserved3(java.lang.String reserved3) {
      _reserved3 = reserved3;
   }


   /**
    * Validate the properties that have been set from this HTTP request,
    * and return an <code>ActionErrors</code> object that encapsulates any
    * validation errors that have been found.  If no errors are found, return
    * <code>null</code> or an <code>ActionErrors</code> object with no
    * recorded error messages.
    *
    * @param mapping The mapping used to select this instance
    * @param request The servlet request we are processing
    */
   public ActionErrors validate(ActionMapping mapping, HttpServletRequest request) {
      ActionErrors errors = new ActionErrors();
      // test for nullity
      if(getEqsGuid() == null) {
         errors.add("eqsGuid", new ActionError("error.eqsGuid.required"));
      }
      // TODO test format/data
      return errors;
   }
}
